package com.tiger.test;

/**
 * @Author: tiger
 * @Date:2018/5/4
 * @Description:
 */
public class Person implements Cloneable{

    private String name = "zhangsan";

    public Person() {
    }

    public Person(String name) {
        this.name = name;
    }
    public void sayHello(){
        System.out.println("hello ...");
    }
    @Override
    protected Person clone() throws CloneNotSupportedException {
        return (Person) super.clone();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
